package com.example.leave.infrastructure.mapper;

import com.example.leave.api.dto.ApproverDto;
import com.example.leave.application.client.dto.PersonDto;
import com.example.leave.domain.leave.aggregate.valueObject.Approver;
import org.mapstruct.Mapper;

/**
 * TODO
 *
 * @author lxh
 * @date 2020/11/25 下午2:07
 **/
@Mapper(componentModel = "spring")
public interface ApproverMapper {
    ApproverDto toApproverDto(Approver approver);

    Approver toApprover(PersonDto personDto);
}
